//package com.example.common.util.easyexcel.strategy;
//
//import com.alibaba.excel.metadata.CellData;
//import com.alibaba.excel.metadata.Head;
//import com.alibaba.excel.write.metadata.holder.WriteSheetHolder;
//import com.alibaba.excel.write.style.column.AbstractColumnWidthStyleStrategy;
//import org.apache.poi.ss.usermodel.Cell;
//import org.apache.poi.ss.usermodel.Sheet;
//
//import java.util.List;
//
///**
// * 自动设列宽
// *
// * @author addzero
// * @see AbstractColumnWidthStyleStrategy
// * @since 2022/11/27
// */
//public class ExcelWidthStyleStrategy extends AbstractColumnWidthStyleStrategy {
//
//
//    @Override
//    protected void setColumnWidth(WriteSheetHolder writeSheetHolder, List<CellData> cellDataList, Cell cell, Head head, Integer relativeRowIndex, Boolean isHead) {
//        Sheet sheet = writeSheetHolder.getSheet();
//        sheet.setColumnWidth(cell.getColumnIndex(), 5000);
//
//    }
//}
